package pub.developers.forum.domain.repository;

import pub.developers.forum.common.model.PageRequest;
import pub.developers.forum.common.model.PageResult;
import pub.developers.forum.domain.entity.Notice;

public interface NoticeRepository {
    boolean saveNotice(Notice notice);

    PageResult<Notice> page(PageRequest<Notice> pageRequest);

    // deleteNotice 删除通知
    boolean deleteNotice(Long id , Long userId);

    // 修改通知
    boolean updateNotice(Notice notice);
}
